﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ProjectManagement.TFS
{
    [Serializable]
    public class FileChangeHistory:IComparable
    {
        public DateTime TimeStamp;
        public string Commiter;
        public int ChangeSetID;
        public string Comment;
        public string ChangeType;
        public long SourceCodeLineCount;

        #region IComparable Members

        public int CompareTo(object obj)
        {
            if (obj.GetType() == typeof(FileChangeHistory))
            {
                FileChangeHistory otherFileHistory = (FileChangeHistory)obj;
                return 0 - this.TimeStamp.CompareTo(otherFileHistory.TimeStamp);
            }
            else
                return 0;
        }

        #endregion
    }
}
